{% extends "FOSUserBundle::layout.html.twig" %}

{% trans_default_domain 'FOSUserBundle' %}

{% block fos_user_content %}

<form action="{{ path("fos_user_security_check") }}" method="post" id="formLogin">
    {% if error %}
        <div class="form-group" style="color: red;">{{ error|trans }}</div>
    {% endif %}
    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
    <div class="form-group">
        <label for="username">{{ 'security.login.username'|trans }}</label>
        <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" class="form-control"/>
    </div>
    <div class="form-group">
        <label for="password">{{ 'security.login.password'|trans }}</label>
        <input type="password" id="password" name="_password" required="required"  class="form-control"/>
    </div>
    {#<div class="form-group">#}
        {#<input type="checkbox" id="remember_me" name="_remember_me" value="on" />#}
        {#<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>#}
    {#</div>#}
    <div class="form-group">
        <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" class="btn"/>
    </div>
    <div class="form-group">
        <a href='{{ path("fos_user_resetting_request") }}'>{{ 'forgot password'|trans({}, "messages") }}</a>
    </div>
</form>
{% endblock fos_user_content %}
